package com.trickytriad.views.viewmodels
{
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	import mx.collections.ArrayCollection;

	public class GameListVM extends EventDispatcher
	{
		// List of currently displayed games
		private var _currentGameList:ArrayCollection;
		
		/**
		 * Default constructor.
		 */
		public function GameListVM(target:IEventDispatcher=null)
		{
			super(target);
		}
	
		[Bindable]
		public function get currentGameList():ArrayCollection { return _currentGameList; }
		public function set currentGameList(value:ArrayCollection) : void
		{
			// Unset the game list, then set & refresh it
			_currentGameList = null;
			_currentGameList = value;
			_currentGameList.refresh();
		}		
	
	
		
	}
}